home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10770 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nntp.hut.fi!usenet
  2. From: hazor@potkulauta.cs.hut.fi (Tommi [Hazor] Lahtonen)
  3. Newsgroups: comp.lang.c++
  4. Subject: question about string class
  5. Date: 10 Mar 1996 21:57:22 +0200
  6. Organization: Helsinki University of Technology
  7. Sender: hazor@potkulauta.cs.hut.fi
  8. Distribution: inet
  9. Message-ID: <izrhgvwsov1.fsf@potkulauta.cs.hut.fi>
  10. NNTP-Posting-Host: potkulauta.cs.hut.fi
  11. X-Newsreader: Gnus v5.1
  12.  
  13. Where can I find information about the methods inside the string class
  14. that comes with c++ (g++, #include <string>) ...?
  15.  
  16. I need to know how can I empty my string, like if I have
  17. string text;
  18. text = "something";
  19. text.empty();
  20.  
  21. --> I want text to be empty but empty() method does not seem to work?
  22. what is the right one?
  23.  
  24. and then I want to know how to put a specific char into specifix place
  25. in my string...
  26. for example , I want to change the "something" into "somethin!"
  27. what method does that?
  28.  
  29. please, give me few examples about doing these...
  30. -- 
  31. Tommi Lahtonen, tlahtone@snakemail.hut.fi, URL: http://www.hut.fi/~tlahtone
  32.  
  33. There is no point in being grown up if you can't be childish sometimes. -Dr. Who
  34.